using System;
using System.Collections.Generic;
using UniversalAdmin.Domain.Entities;

namespace UniversalAdmin.Domain.Entities.App;

public class Menu : EntityBase
{
    public string Name { get; set; } = string.Empty;
    public string? Path { get; set; }
    public string? Icon { get; set; }
    public Guid? ParentId { get; set; }
    public int Sort { get; set; } = 0;

    // Navigation properties
    public virtual Menu? Parent { get; set; }
    public virtual ICollection<Menu> Children { get; set; } = new List<Menu>();
    public virtual ICollection<Role> Roles { get; set; } = new List<Role>();
}
